package com.hzit.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 类名：
 * 作者：WF
 * 功能：fanout（分裂模式）
 */
@Component
@RabbitListener(queues = "hzit-futian")
public class MyListener02 {

	@RabbitHandler
	public void getMessage(String msg){
		System.out.println("接收到消息[福田]："  + msg);
	}
}
